package com.imooc.disruptor.heigh.chain;

import com.lmax.disruptor.EventHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @author yqc 2018/10/9
 */
@Slf4j
public class Handler3 implements EventHandler<Trade> {

    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        log.info("handler 3 : name: {}, id: {}, price: {}",
                event.getName(), event.getId(), event.getPrice());
    }
}
